<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Rss extends CI_Controller {
	public $content;

    function __controller() { 
        parent::Controller();
		
    }

    public function index($page = 0) { 
        $this -> load -> model('News_modul', 'news'); 
		 
        $content['news'] = $this -> news -> listing();  
        $this -> load -> view('rss/rss', $content);
    } 
    public function yandex($page = 0) { 
        $this -> load -> model('News_modul', 'news'); 
		 
        $content['news'] = $this -> news -> listing();  
        $this -> load -> view('rss/yandex', $content);
    } 
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
    public function sitemapnews($page = 0) { 
        $this -> load -> model('News_modul', 'news'); 
		 
        $content['news'] = $this -> news -> listing_sitemap($page,$page+1000);  
        $this -> load -> view('rss/sitemap', $content);
    }  
    public function article() { 
        $this -> load -> model('News_modul', 'news'); 
		 
        $content['news'] = $this -> news -> listing_sitemap($page,$page+1000);  
        $this -> load -> view('rss/sitemap', $content);
    } 
	
	
	 
	
} 
